package com.weichen.studentgameexchange.activity.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能：
 * 作者：惟尘
 * 日期：2025/1/20 16:03
 */
@RefreshScope
@RestController
@RequestMapping("/activity/activity")
public class TestController {
    @Value("${activity.user.name}")
    private String name;

    @GetMapping("/getName")
    public String getName() {
        return name;
    }
}
